class Api::V1::AdvertisementsController < Api::V1::BaseController
  skip_before_action :authenticate_request!

  def index
    @advertisements = Advertisement.where(page: params[:page_name]).order("created_at DESC").page(params[:page]).per(params[:per])
  end
end
